package tinycloud.gui.action;


import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.JFrame;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author nicolas
 */
public class QuitAction extends AbstractAction {

    private JFrame frame;

    public QuitAction(JFrame frame) {
        this.frame = frame;
    }

    public void actionPerformed(ActionEvent e) {
        frame.dispose();
        System.exit(0);
    }

}
